<meta charset="UTF-8">
<title>部门管理</title>
	<div class="container">
		<table id="mytable">
			<thead>
				<tr>
					<th data-checkbox="true"></th>
					<!-- <th data-field="id">序号</th> -->
					<th data-field="name">部门名称</th>
				</tr>
			</thead>
		</table>
	</div>
<script type="text/javascript">
	$(function(){
		$('#mytable').datagrid({
			url:'list',
			pagination: false,
	        //在哪一列展开树形
	        treeShowField: 'name',
	        //指定父id列
	        parentIdField: 'parentId',
	
	        treegrid:true
		})
	})
</script>